package com.ktjy.iotproduct7031.controller;

import com.ktjy.pojo.DeviceData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProductController {

    @GetMapping("/product/{id}")
    public DeviceData getProduct(@PathVariable int id) {
        System.out.println("7031............");
        DeviceData deviceData = new DeviceData();
        deviceData.setId(id);
        deviceData.setClientId("123456:7031");
        return deviceData;
    }
}
